import os

Import('platform_name')

def shlib(pname):
    if pname[:5] == 'Linux' or pname[:7] == 'FreeBSD':
        return 'so'
    elif pname[:5] == 'WINNT':
        return 'dll'
    elif pname[:6] == 'Darwin':
        return 'dylib'
    return None

r = []
if isinstance(platform_name, list):
    for p in platform_name:
        r.append(os.path.join('lib', p, 'libchmfox.' + shlib(p)))
else:
    r.append(os.path.join('lib', platform_name, 'libchmfox.' + shlib(platform_name)))

Return('r')
